package model;

import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.annotation.JSONField;

import java.util.List;

public class MaterialJson {
	@JSONField(name = "Name")
	private String name;
	@JSONField(name = "MTD")
	private String MTD;
	@JSONField(name = "Flags")
	private int flags;
	@JSONField(name = "Textures")
	private List<TexturesJson> textures;
	@JSONField(name = "GXBytes")
	private List<Integer> GXBytes;
	@JSONField(name = "Unk18")
	private int unk18;

	public static MaterialJson parseJson(String jsonData) {
		return JSON.parseObject(jsonData, MaterialJson.class);
	}

	public String getName() {
		return name;
	}

	public void setName(String Name) {
		this.name = Name;
	}

	public String getMTD() {
		return MTD;
	}

	public void setMTD(String MTD) {
		this.MTD = MTD;
	}

	public int getFlags() {
		return flags;
	}

	public void setFlags(int Flags) {
		this.flags = Flags;
	}

	public List<TexturesJson> getTextures() {
		return textures;
	}

	public void setTextures(List<TexturesJson> Textures) {
		this.textures = Textures;
	}

	public List<Integer> getGXBytes() {
		return GXBytes;
	}

	public void setGXBytes(List<Integer> GXBytes) {
		this.GXBytes = GXBytes;
	}

	public int getUnk18() {
		return unk18;
	}

	public void setUnk18(int Unk18) {
		this.unk18 = Unk18;
	}

	@Override
	public String toString() {
		return "MaterialJson{" +
		       "name='" + name + '\'' +
		       ", MTD='" + MTD + '\'' +
		       ", Flags=" + flags +
		       ", Textures=" + textures +
		       ", GXBytes=" + GXBytes +
		       ", Unk18=" + unk18 +
		       '}';
	}
}
